<?php

/**
 * simple_wysiwyg - Simple wysiwyg object
 *
 * @package
 * @author Alexis Eric
 * @copyright Copyright (c) 2012 - Erra Prod
 * @version $1.0$
 * @access public
 */
class Std_WysiwygObject extends Erra_Fields_Base_Object {

    function __construct($objectId, $buildArgs = null) {
        parent::__construct($objectId, $buildArgs);
        $wysiwyg_content = Erra_Fields_Wysiwyg::create('wysiwyg_content')
                ->setCols('70')
                ->setRows('10')
                ->setDescription(__('Wysiwyg content'));
        $this->addFields($wysiwyg_content);
    }

    public function __render($displayArgs = null) {
        $res = $this->wysiwyg_content->value;
        return $res;
    }

}

?>